'use strict';

module.exports = app => {
  const { STRING, INTEGER, JSON } = app.Sequelize;
  const Trainline = app.model.define('trainline', {
    id: {
      type: INTEGER,
      primaryKey: true,
      autoIncrement: true,
    },
    train_id: {
      type: STRING,
      allowNull: false,
    },
    train_name: STRING,
    station_info: JSON,
  });
  return Trainline;
};
